<%@ page import="forum.Frage" %>



<div class="fieldcontain ${hasErrors(bean: frageInstance, field: 'antwort', 'error')} ">
	<label for="antwort">
		<g:message code="frage.antwort.label" default="Antwort" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${frageInstance?.antwort?}" var="a">
    <li><g:link controller="antwort" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="antwort" action="create" params="['frage.id': frageInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'antwort.label', default: 'Antwort')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: frageInstance, field: 'benutzer', 'error')} required">
	<label for="benutzer">
		<g:message code="frage.benutzer.label" default="Benutzer" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="benutzer" name="benutzer.id" from="${forum.Benutzer.list()}" optionKey="id" required="" value="${frageInstance?.benutzer?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: frageInstance, field: 'gestellteFrage', 'error')} ">
	<label for="gestellteFrage">
		<g:message code="frage.gestellteFrage.label" default="Gestellte Frage" />
		
	</label>
	<g:textArea name="gestellteFrage" value="${frageInstance?.gestellteFrage}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: frageInstance, field: 'kategorie', 'error')} required">
	<label for="kategorie">
		<g:message code="frage.kategorie.label" default="Kategorie" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="kategorie" name="kategorie.id" from="${forum.Kategorie.list()}" optionKey="id" required="" value="${frageInstance?.kategorie?.id}" class="many-to-one"/>
</div>

